package 线程.day2.demo2;

class B implements Runnable{
    int i=0;
    @Override
    public void run() {
        System.out.println("i="+i++);
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {

        }
    }
}